@charset "utf-8";
/* Grafiske prosjekter */

.container {
    width: 80%;
    margin: 0 auto;
}

.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Spacing between images */
	margin-bottom: 60px;
}

.portfolio-item {
    flex: 1 1 calc(33.33% - 20px); /* 3 items per row */
    box-sizing: border-box;
}

.portfolio-item img {
    width: 100%;
    height: auto;
}

.image-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Space between images */
}

.image-row img {
    width: 24%; /* Adjust this to control the number of images per row */
    height: auto;
	margin-bottom: 20px;
}

.portfolio-item {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    cursor: pointer; /* Viser at bildet er klikkbart */
}

/* Footer */
footer {
    background: #4F92FF;
    color: #0D1420;
    text-align: center;
    padding: 20px 0;
	margin-top: 60px;
}

footer a {
    color: #FFFFFF;
    text-decoration: none;
}

/* Add a black background color to the top navigation */
.topnav {
	background-color: #4F92FF;
	overflow: hidden;
}
  
  /* Style the links inside the navigation bar */
.topnav a {
	float: left;
	display: block;
	color: #0D1420;
	text-align: center;
	padding: 14px 16px;
	text-decoration: none;
	font-size: 17px;
}
  
/* Change the color of links on hover */
.topnav a:hover {
	background-color: #1666E4;
	color: ghostwhite;
}
  
/* Add an active class to highlight the current page */
.topnav a.active {
	background-color: #11326b;
	color: ghostwhite;
}
  
/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
	display: none;
}

@media screen and (max-width: 600px) {
	.topnav a:not(:first-child) {display: none;}
	.topnav a.icon {
	  float: right;
	  display: block;
	}
}
  
  @media screen and (max-width: 600px) {
	.topnav.responsive {position: relative;}
	.topnav.responsive .icon {
	  position: absolute;
	  right: 0;
	  top: 0;
	}
	.topnav.responsive a {
	  float: none;
	  display: block;
	  text-align: left;
	}
}

 /* The sticky class is added to the navbar with JS when it reaches its scroll position */
.sticky {
	position: fixed;
	top: 0;
	width: 100%;
}
  
/* Add some top padding to the page content to prevent sudden quick movement (as the navigation bar gets a new position at the top of the page (position:fixed and top:0) */
.sticky + .content {
	padding-top: 60px;
}

body {
	   background-color: ghostwhite;
	}

h1 {
		font-family: Arial, Helvetica, sans-serif;
		text-rendering: optimizeLegibility;
    	}

h2 {
		font-family: Arial, Helvetica, sans-serif;
		text-rendering: optimizeLegibility;
		text-align: center;
		text-decoration:underline;
		text-decoration-color: #659EFC;
		padding: 5px;
    	}
	
h3 {
        font-family: Arial, Helvetica, sans-serif;
		text-rendering: optimizeLegibility;
    	}

p {
		font-family: Arial, Helvetica, sans-serif;
		text-rendering: optimizeLegibility;
		margin-bottom: 20px;
		}

.grafisk {
	font-family: Arial, Helvetica, sans-serif;
	text-rendering: optimizeLegibility;
	margin-bottom: 120px;
	}


	#myBtn {
		display: none; /* Hidden by default */
		position: fixed; /* Fixed/sticky position */
		bottom: 20px; /* Place the button at the bottom of the page */
		right: 30px; /* Place the button 30px from the right */
		z-index: 99; /* Make sure it does not overlap */
		border: none; /* Remove borders */
		outline: none; /* Remove outline */
		background-color: black; /* Set a background color */
		color: white; /* Text color */
		cursor: pointer; /* Add a mouse pointer on hover */
		padding: 15px; /* Some padding */
		border-radius: 10px; /* Rounded corners */
		font-size: 18px; /* Increase font size */
	  }
	  
	  #myBtn:hover {
		background-color: #555; /* Add a dark-grey background on hover */
	  }
